<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'filter-word-form',
    'htmlOptions' => array(
	'class' => 'form-horizontal'
	)));
?>
<?php if ($form->errorSummary($model)) { ?>
    <div class='alert alert-danger'>
	<?php echo $form->errorSummary($model); ?>
    </div>
<?php } ?>
<div class="control-group">
    <div class="controls">
	<?php echo $form->textField($model, 'word'); ?>
    </div>
</div>
<div class="control-group">
    <div class="controls">

	<input type="submit" class="btn btn-large btn-info" 
	       <?php if ($type == 'create') { ?>
    	       value="Add" 
	       <?php } else { ?>
    	       value="Update" 		       	       
	       <?php } ?>
	       name='submit'/>  
    </div>
</div>

<?php $this->endWidget(); ?>
	    	